Contour plot of the
fold.contour(m, s, p, a, n = 100, x = NULL)
The mean vector of the folded model.
The covariance matrix of the folded model.
The probability inside the simplex of the folded model.
The value of a for the
The number of grid points to consider over which the density is calculated.
This is either NULL (no data) or contains a 3 column matrix with compositional data.
The contour plot of the folded model appears.
The
Tsagris Michail and Stewart Connie (2020). A folded model for compositional data analysis. Australian and New Zealand Journal of Statistics, 62(2): 249-277. https://arxiv.org/pdf/1802.07330.pdf
alfa.contour, norm.contour, diri.contour, mixnorm.contour, bivt.contour, skewnorm.contour
# NOT RUN {
x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
a <- a.est(x)$best
mod <- alpha.mle(x, a)
fold.contour(mod$mu, mod$su, mod$p, a)
# }
Run the code above in your browser using DataLab